#!/usr/bin/env bash
rm -f ./storage/framework/views/*


cp -rf public/zys_h5/dist/ public/
if [ "$1"x = "y"x ]; then
    rsync --exclude='.git/' --exclude-from=exclude.list -va . root@112.124.111.164:/home/wwwroot/water.phpyiqiwan.com

    ssh root@112.124.111.164 "chown  -Rf www.www /home/wwwroot/water.phpyiqiwan.com"

else
    rsync --exclude='.git/' --exclude-from=exclude.list -van . root@112.124.111.164:/home/wwwroot/water.phpyiqiwan.com
fi